package cn.z2huo.demo.spring.webmvc.config;

import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

import java.util.List;

/**
 * <p>{@link CustomWebMvcConfiguration2} 和 {@link CustomWebMvcConfiguration} 都继承自 {@link WebMvcConfigurationSupport}
 * <p>两者好像不能共存
 *
 * @author z2huo
 */
//@Configuration
//@Order(1)
@Deprecated
public class CustomWebMvcConfiguration extends WebMvcConfigurationSupport {

    @Override
    protected void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) {
        argumentResolvers.add(new WebAttributeMethodArgumentResolver());
    }

}
